/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Obstacle;

import java.awt.*;
import Game.Game;
import Util.Entity;
import Character.Character;

/**
 *
 * @author oscar linger
 */
public class AlternativeBlock extends Entity {

    public AlternativeBlock(int x, int y) {
        super("sprites/smallblock.gif", x, y);
    }

   // @Override
    public void collidedWith(Character other) {
        if (other instanceof Character) {
            ((Character) other).escape(this.getCollisionBox());
        }
    }

    @Override
    public void collidedWith(Entity other) {
        throw new UnsupportedOperationException("Not supported yet.");
    }
}
